package com.town.garden.entiy.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.town.garden.entiy.AlarmList;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Description 查询事件响应结数据
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/5/13
 */
@Data
public class SearchAlarmEventResponseData implements Serializable {
    /**
     * 当request无readerID时，创建readerID并返回
     */
    @JsonProperty("reader_id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer readerId;
    /**
     * 当前最新的sequence位置
     */
    @JsonProperty("sequence")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer sequence;
    /**
     * 当前sequence位置所属圈数
     */
    @JsonProperty("lap_number")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer lapNumber;
    /**
     * 当无alarm_list时，输出心跳报警消息
     */
    @JsonProperty("heat_alarm")
    private String heatAlarm;

    /**
     * 告警数据集合
     */
    @JsonProperty("alarm_list")
    private List<AlarmList> alarmList;
}
